package tenant

import (
	"context"
	"git.mycaigou.com/gfyx/micro-gfyx-user-service/infrastructure/common/utils"
)

type TenantsRepositoryIface interface {
	AddTenant(ctx context.Context, data *Tenants) (int32, error)
	SaveTenant(ctx context.Context, data *Tenants) error
	GetTenantByCode(ctx context.Context, tenantCode string) (*Tenants, error)
	GetTenantByName(ctx context.Context, name string) (*Tenants, error)
	DisableTenant(ctx context.Context, tenantCode string) (bool, error)
	GetAllTenant(ctx context.Context) ([]*Tenants, error)

	GetAllEfficientTenant(ctx context.Context) (int64, []*Tenants, error)
	QueryTenantList(ctx context.Context, condition map[string]interface{}, pageInfo *utils.PageInfo, orderBy string) (int64, []*Tenants, error)
}
